<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>商家信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <meta http-equiv="Pragma"   ="" content="no-cache">

    <meta http-equiv="Cache-Control"   ="" content="no-cache">&nbsp;
    <meta http-equiv="Expires"   ="" content="0">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/layui/style/admin.css" media="all" />
</head>
<body layadmin-themealias="default">&nbsp;
<form class="layui-form" lay-filter="wxmchInfo_form" action="http://face.idverify.net/enterprise_info/index?mchUserId=259">
    <input type="hidden" id="wxMchId" name="id" value="" th:value="${weChatMchInfo.id}">
    <input type="hidden" id="userId"       name="userId"   value=""   th:value="${weChatMchInfo.userId}">

    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>联系信息</legend>
        <div class="layui-form-item ">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-block">
                <input type="text" name="contact" th:value="${weChatMchInfo.contact}" value="" placeholder="联系人" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item ">
            <label class="layui-form-label">手机号码</label>
            <div class="layui-input-block">
                <input type="text" name="contact_phone" th:value="${weChatMchInfo.contact_phone}" value="" placeholder="联系手机" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item ">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
                <input type="text" name="contact_email" value="" th:value="${weChatMchInfo.contact_email}" placeholder="联系邮箱" autocomplete="off" class="layui-input">
            </div>
        </div>

    </fieldset>

    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>经营信息</legend>
        <div class="layui-form-item ">
            <label class="layui-form-label">商户简称</label>
            <div class="layui-input-block">
                <input type="text" name="merchant_shortname" value="" th:value="${weChatMchInfo.merchant_shortname}" placeholder="商户简称" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item ">
            <label class="layui-form-label">门店名称</label>
            <div class="layui-input-block">
                <input type="text" th:value="${weChatMchInfo.store_name}" name="store_name" value="" placeholder="门店名称" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item ">
            <label class="layui-form-label">门店省市编码</label>
            <div class="layui-input-block">
                <input type="text" th:value="${weChatMchInfo.store_address_code}" name="store_address_code" value="" placeholder="门店省市编码" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item ">
            <label class="layui-form-label">门店街道名称</label>
            <div class="layui-input-block">
                <input type="text"  th:value="${weChatMchInfo.store_street}" name="store_street" value="" placeholder="门店街道名称" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">门店门口照片</label>
            <div class="layui-input-block face_file">
                <div class="layui-upload-list">
                    <input type="hidden"   th:value="${weChatMchInfo.store_entrance_pic}" keyname="store_entrance_pic" name="store_entrance_pic" value="" class="face_file_input">
                    <img class="layui-upload-img face_file_img" style="max-width: 300px; max-height: 200px;">
                    <p class="fade_file_tip"></p>
                </div>
                <button type="button" class="layui-btn layui-form-label face_file_btn">上传图片</button><input class="layui-upload-file" type="file" accept="undefined" name="file">

            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">店内环境照片</label>
            <div class="layui-input-block face_file">
                <div class="layui-upload-list">
                    <input type="hidden" th:value="${weChatMchInfo.indoor_pic}" keyname="indoor_pic" name="indoor_pic" value="" class="face_file_input">
                    <img class="layui-upload-img face_file_img" style="max-width: 300px; max-height: 200px;">
                    <p class="fade_file_tip"></p>
                </div>
                <button type="button" class="layui-btn layui-form-label face_file_btn">上传图片</button><input class="layui-upload-file" type="file" accept="undefined" name="file">
            </div>
        </div>



        <div class="layui-form-item ">
            <label class="layui-form-label">客服电话</label>
            <div class="layui-input-block">
                <input type="text" th:value="${weChatMchInfo.service_phone}" name="service_phone" value="" placeholder="客服电话" autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item " >
            <label class="layui-form-label">服务描述</label>
            <div class="layui-input-block">
                <select name="product_desc"   th:value="${weChatMchInfo.product_desc}">
                    <option  th:selected="${weChatMchInfo.product_desc=='餐饮'}" value="餐饮">餐饮</option>
                    <option  th:selected="${weChatMchInfo.product_desc=='线下零售'}" value="线下零售">线下零售</option>
                    <option  th:selected="${weChatMchInfo.product_desc=='居民生活服务'}" value="居民生活服务">居民生活服务</option>
                    <option  th:selected="${weChatMchInfo.product_desc=='休闲娱乐'}" value="休闲娱乐">休闲娱乐</option>
                    <option  th:selected="${weChatMchInfo.product_desc=='交通出行'}" value="交通出行">交通出行</option>
                    <option  th:selected="${weChatMchInfo.product_desc=='其他'}" value="其他">其他</option>
                </select>
            </div>
        </div>
    </fieldset>

    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>企业法人/经办人</legend>

        <div class="layui-form-item ">
            <label class="layui-form-label">身份证姓名</label>
            <div class="layui-input-block">
                <input type="text" th:value="${weChatMchInfo.id_card_name}" name="id_card_name" value="" placeholder="身份证姓名" autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item ">
            <label class="layui-form-label">身份证号码</label>
            <div class="layui-input-block">
                <input type="text" th:value="${weChatMchInfo.id_card_number}" name="id_card_number" value="" placeholder="身份证号码" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">身份证人像面照片</label>
            <div class="layui-input-block face_file">
                <div class="layui-upload-list">
                    <input type="hidden" th:value="${weChatMchInfo.id_card_copy}" keyname="id_card_copy" name="id_card_copy" value="" class="face_file_input">
                    <img class="layui-upload-img face_file_img" style="max-width: 300px; max-height: 200px;">
                    <p class="fade_file_tip"></p>
                </div>
                <button type="button" class="layui-btn layui-form-label face_file_btn">上传图片</button><input class="layui-upload-file" type="file" accept="undefined" name="file">

            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">身份证国徽面照片</label>
            <div class="layui-input-block face_file">
                <div class="layui-upload-list">
                    <input type="hidden"  th:value="${weChatMchInfo.id_card_national}" keyname="id_card_national" name="id_card_national" value="" class="face_file_input">
                    <img class="layui-upload-img face_file_img" style="max-width: 300px; max-height: 200px;">
                    <p class="fade_file_tip"></p>
                </div>
                <button type="button" class="layui-btn layui-form-label face_file_btn">上传图片</button><input class="layui-upload-file" type="file" accept="undefined" name="file">

            </div>
        </div>



        <div class="layui-form-item ">
            <label class="layui-form-label">有效期(格式2010-01-01|2020-01-01)</label>
            <div class="layui-input-block">
                <input type="text" th:value="${weChatMchInfo.id_card_valid_time}" name="id_card_valid_time" value="" placeholder="有效期(2010-01-01|2020-01-01)" autocomplete="off" class="layui-input">
            </div>
        </div>

    </fieldset>

    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>结算信息</legend>

        <div class="layui-form-item ">
            <label class="layui-form-label">微信结算费率</label>
            <div class="layui-input-block">
                <input type="number" th:value="${weChatMchInfo.wxFinalRate}" required lay-verify="required|finalRate"  name="wxFinalRate" value=""  placeholder="微信结算费率" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item ">
            <label class="layui-form-label" style="color: red;">微信补贴比列(非必填)</label>
            <div class="layui-input-block">
                <input type="number" th:value="${weChatMchInfo.wxSubsidyRate}" name="wxSubsidyRate" value="" placeholder="微信补贴比列" autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item ">
            <label class="layui-form-label">开户名称</label>
            <div class="layui-input-block">
                <input type="text" th:value="${weChatMchInfo.account_name}" name="account_name" value="" placeholder="开户名称" autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item ">
            <label class="layui-form-label">开户银行</label>
            <div class="layui-input-block">
                <input type="text" th:value="${weChatMchInfo.account_bank}" name="account_bank" value="" placeholder="开户银行" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item ">
            <label class="layui-form-label">开户银行省市编码</label>
            <div class="layui-input-block">
                <input type="text"  th:value="${weChatMchInfo.bank_address_code}" name="bank_address_code" value="" placeholder="开户银行省市编码" autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item ">
            <label class="layui-form-label">开户银行全称（含支行）</label>
            <div class="layui-input-block">
                <input type="text"  th:value="${weChatMchInfo.bank_name}" name="bank_name" value="" placeholder="开户银行全称（含支行）" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item ">
            <label class="layui-form-label">银行账号</label>
            <div class="layui-input-block">
                <input type="text"  th:value="${weChatMchInfo.account_number}" name="account_number" value="" placeholder="银行账号" autocomplete="off" class="layui-input">
            </div>
        </div>

    </fieldset>

    <div class="layui-form-item"  sec:authorize="hasRole('AGENCY_MANAGER')"  >
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="wxmchInfo_form_ok">暂存</button>、
            <button class="layui-btn" lay-submit="" lay-filter="wxmchInfo_form_apply">进件提交</button>
        </div>
    </div>
</form>

<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/js/applyment/wxMchInfo.js"></script>


</body>